//
//  HandleBankCell.swift
//  KaMengApplication
//
//  Created by DUONIU_MAC on 2019/1/7.
//  Copyright © 2019年 DUONIU_MAC. All rights reserved.
//

import UIKit

class HandleBankCell: UITableViewCell {
    
    let bankLabel = UILabel() //银行
    let titleLabel = UILabel() //标题

    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        bankLabel.font = UIFont.systemFont(ofSize: RATIO(maxNum: 16))
        self.contentView.addSubview(bankLabel)
        
        titleLabel.textColor = UIColor.gray
        titleLabel.font = UIFont.systemFont(ofSize: RATIO(maxNum: 14))
        self.contentView.addSubview(titleLabel)
        
        bankLabel.snp.makeConstraints { (make) in
            make.centerY.equalToSuperview()
            make.left.equalToSuperview().offset(RATIO(maxNum: 20))
            make.width.greaterThanOrEqualTo(10)
            make.height.greaterThanOrEqualTo(10)
        }
        
        titleLabel.snp.makeConstraints { (make) in
            make.centerY.equalTo(bankLabel)
            make.left.equalTo(bankLabel.snp.right).offset(RATIO(maxNum: 30))
            make.width.greaterThanOrEqualTo(10)
            make.height.greaterThanOrEqualTo(10)
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}
